<template>
  <div>
    <div class="more-index-wrap">
      <div class="content">
        <div class="more-index-item" @click="handleToRoute('StorageManagement')">
          <div class="image">
            <img src="@/assets/images/more/cwgl-icon.png" alt="" />
          </div>
          <div class="desc">存物管理</div>
        </div>
        <div class="more-index-item" @click="handleToRoute('EnterpriseAccount')">
          <div class="image">
            <img src="@/assets/images/more/gzgl-icon.png" alt="" />
          </div>
          <div class="desc">挂账管理</div>
        </div>
        <div class="more-index-item" @click="handleToRoute('ActionLog')">
          <div class="image">
            <img src="@/assets/images/more/czrz-icon.png" alt="" />
          </div>
          <div class="desc">操作日志</div>
        </div>
        <div class="more-index-item" @click="handleToRoute('Printer')">
          <div class="image">
            <img src="@/assets/images/more/dyjgl-icon.png" alt="" />
          </div>
          <div class="desc">打印机管理</div>
        </div>
        <div class="more-index-item" @click="handleToRoute('MobileDevices')">
          <div class="image">
            <img src="@/assets/images/more/ydsbgl-icon.png" alt="" />
          </div>
          <div class="desc">移动设备管理</div>
        </div>
        <div class="more-index-item" @click="handleToRoute('MoreDocumentSetting')">
          <div class="image">
            <img src="@/assets/images/more/djsz-icon.png" alt="" />
          </div>
          <div class="desc">单据设置</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

function handleToRoute(routeName) {
  router.push({ name: routeName })
}
</script>

<style lang="scss" scoped>
.more-index-wrap {
  width: 1600px;
  height: 986px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 3px 0px 24px 0px rgba(0, 0, 0, 0.16);
  padding: 50px 157px 0 157px;
}
.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1286px;
  flex-wrap: wrap;
}
.more-index-item {
  width: 352px;
  height: 220px;
  background: #a85b62;
  border-radius: 12px;
  box-sizing: border-box;
  padding: 15px 15px 0 22px;
  margin-top: 150px;
  cursor: pointer;
  .image {
    height: 152px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    > img {
      width: 152px;
      height: 152px;
      flex-shrink: 0;
    }
  }
  .desc {
    font-size: 21px;
    font-family: PingFang SC, PingFang SC-Regular;
    font-weight: 400;
    text-align: left;
    color: #ffffff;
    line-height: 25px;
  }
}
.more-index-item:nth-child(2) {
  background: #6c5356;
}
.more-index-item:nth-child(3) {
  background: #a77f80;
}
.more-index-item:nth-child(4) {
  background: #dbb9ba;
}
.more-index-item:nth-child(5) {
  background: #aaa5ab;
}
.more-index-item:nth-child(6) {
  background: #c3bacc;
}
</style>
